﻿using Microsoft.AspNetCore.Builder;
using Microsoft.Extensions.DependencyInjection;
using Zws.Frameworker.Module;

namespace App.Chat.Hubs
{
    public class AppChatHubModule : ModuleMark
    {
        public void OnBuilderExec(WebApplicationBuilder builder)
        {
            //builder.Services.AddScoped<MongoService>();
            builder.Services.AddScoped<IChatHub, ChatHub>();
            builder.Services.AddScoped<IRemoteEventTrigger, RemoteEventTrigger>();
        }
    }
}
